package com.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * (TbUser)表实体类
 *
 * @author makejava
 * @since 2024-11-07 19:53:31
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_user")
//用户表
public class TbUser extends Model<TbUser> {
    @TableId(type = IdType.AUTO)
    private Integer id;
//用户名
    private String name;
//手机号
    private String phone;
//密码
    private String password;
//会员
    private String me;
//用户签到次数
    private String diao;
//状态
    private String statu;
//创建时间
    private Date createTime;
//修改时间
    private Date updateTime;

    public TbUser(String name, String phone, String password) {
        this.name = name;
        this.phone = phone;
        this.password = password;
        this.statu = "0";
        this.diao = "0";
        this.createTime = new Date();
        this.updateTime = new Date();
    }
}

